package com.liujs;

import com.liujs.config.DynamicDataSourceConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Import;

/**
 * @author liujs@centaline.com.cn
 * @description
 * @date 2020/10/13 15:55
 */
@SpringBootApplication(scanBasePackages = "com.liujs",exclude= {DataSourceAutoConfiguration.class})
@MapperScan(basePackages = "com.liujs.mapper")
@Import({DynamicDataSourceConfig.class})
public class StartApp extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(StartApp.class);
    }
//
//    @Override
//    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
//        return application.sources(StartApp.class);
//    }


}